using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_NhaCungCapManagerBase
    {
        public TBL_NhaCungCapManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity Insert(TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity Update(TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity UpdateWithCondition(TBL_NhaCungCapEntity obj,TBL_NhaCungCapEntity objCond)
        { 
            return (TBL_NhaCungCapEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_NhaCungCapEntity Delete(TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_NhaCungCapEntity DeleteWithCondition(TBL_NhaCungCapEntity objCond)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByDiaChi (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"DiaChi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DiaChi 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByDiaChi (string DiaChi )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DiaChi = DiaChi;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"DiaChi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByDienThoai (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"DienThoai");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien DienThoai 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByDienThoai (string DienThoai )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DienThoai = DienThoai;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"DienThoai");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByEmail (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"Email");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Email 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByEmail (string Email )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.Email = Email;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"Email");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByMaNCC (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"MaNCC");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaNCC 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByMaNCC (string MaNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.MaNCC = MaNCC;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"MaNCC");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByNguoiDaiDien (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"NguoiDaiDien");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiDaiDien 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByNguoiDaiDien (string NguoiDaiDien )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.NguoiDaiDien = NguoiDaiDien;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"NguoiDaiDien");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByTenNCC (TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"TenNCC");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenNCC 
        /// </summary>
        /// <returns>TBL_NhaCungCapEntity</returns>
        public TBL_NhaCungCapEntity DeleteByTenNCC (string TenNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.TenNCC = TenNCC;  
            return (TBL_NhaCungCapEntity)Adapter.DeleteByField(obj,"TenNCC");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_NhaCungCapEntity Select(TBL_NhaCungCapEntity obj)
        { 
            return (TBL_NhaCungCapEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_NhaCungCapEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_NhaCungCapEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_NhaCungCapEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_NhaCungCapEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_NhaCungCapEntity> SelectAllLST()
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_NhaCungCapEntity()),new TBL_NhaCungCapEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_NhaCungCapEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_NhaCungCapEntity(),option),new TBL_NhaCungCapEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDiaChi (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"DiaChi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDiaChi (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DiaChi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByDiaChiLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DiaChi"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByDiaChiLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DiaChi",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDiaChi (string DiaChi )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DiaChi = DiaChi;  
            return Adapter.SelectByField(obj,"DiaChi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDiaChi (string DiaChi, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DiaChi = DiaChi;  
            return Adapter.SelectByField(obj,"DiaChi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByDiaChiLST (string DiaChi )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DiaChi = DiaChi;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DiaChi"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DiaChi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByDiaChiLST (string DiaChi, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DiaChi = DiaChi;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DiaChi",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDienThoai (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"DienThoai");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDienThoai (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"DienThoai",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByDienThoaiLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DienThoai"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByDienThoaiLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"DienThoai",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDienThoai (string DienThoai )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DienThoai = DienThoai;  
            return Adapter.SelectByField(obj,"DienThoai");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByDienThoai (string DienThoai, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DienThoai = DienThoai;  
            return Adapter.SelectByField(obj,"DienThoai",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByDienThoaiLST (string DienThoai )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DienThoai = DienThoai;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DienThoai"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien DienThoai duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByDienThoaiLST (string DienThoai, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.DienThoai = DienThoai;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"DienThoai",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByEmail (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"Email");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByEmail (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Email",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByEmailLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Email"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByEmailLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Email",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByEmail (string Email )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.Email = Email;  
            return Adapter.SelectByField(obj,"Email");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByEmail (string Email, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.Email = Email;  
            return Adapter.SelectByField(obj,"Email",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByEmailLST (string Email )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.Email = Email;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Email"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Email duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByEmailLST (string Email, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.Email = Email;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Email",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNCC (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaNCC");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNCC (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaNCC",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByMaNCCLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNCC"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByMaNCCLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaNCC",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNCC (string MaNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.MaNCC = MaNCC;  
            return Adapter.SelectByField(obj,"MaNCC");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaNCC (string MaNCC, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.MaNCC = MaNCC;  
            return Adapter.SelectByField(obj,"MaNCC",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByMaNCCLST (string MaNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.MaNCC = MaNCC;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNCC"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByMaNCCLST (string MaNCC, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.MaNCC = MaNCC;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaNCC",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDaiDien (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiDaiDien");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDaiDien (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiDaiDien",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByNguoiDaiDienLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDaiDien"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByNguoiDaiDienLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiDaiDien",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDaiDien (string NguoiDaiDien )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.NguoiDaiDien = NguoiDaiDien;  
            return Adapter.SelectByField(obj,"NguoiDaiDien");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDaiDien (string NguoiDaiDien, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.NguoiDaiDien = NguoiDaiDien;  
            return Adapter.SelectByField(obj,"NguoiDaiDien",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByNguoiDaiDienLST (string NguoiDaiDien )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.NguoiDaiDien = NguoiDaiDien;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDaiDien"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDaiDien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByNguoiDaiDienLST (string NguoiDaiDien, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.NguoiDaiDien = NguoiDaiDien;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDaiDien",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNCC (TBL_NhaCungCapEntity obj)
        { 
            return Adapter.SelectByField(obj,"TenNCC");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNCC (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TenNCC",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByTenNCCLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNCC"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectByTenNCCLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TenNCC",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNCC (string TenNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.TenNCC = TenNCC;  
            return Adapter.SelectByField(obj,"TenNCC");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenNCC (string TenNCC, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.TenNCC = TenNCC;  
            return Adapter.SelectByField(obj,"TenNCC",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByTenNCCLST (string TenNCC )
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.TenNCC = TenNCC;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNCC"),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenNCC duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_NhaCungCapEntity> SelectByTenNCCLST (string TenNCC, SelectOptions option)
        { 
            TBL_NhaCungCapEntity obj = new TBL_NhaCungCapEntity();
            obj.TenNCC = TenNCC;  
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenNCC",option),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectWithConditionLST (TBL_NhaCungCapEntity obj)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_NhaCungCapEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_NhaCungCapEntity></returns>
        public List<TBL_NhaCungCapEntity> SelectWithConditionLST (TBL_NhaCungCapEntity obj,SelectOptions option)
        { 
            return  (List<TBL_NhaCungCapEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_NhaCungCapEntity());
        }

}
}
